package asia.lics.system.domain;

import asia.lics.common.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 前台用户对象
 */
public class FUser implements Serializable {
    private static final long serialVersionUID = 1L;


    private Long id;

    /**
     * 名称
     */
    @Excel(name = "名称")
    private String name;

    /**
     * 手机号
     */
    @Excel(name = "手机号")
    private String tel;

    /**
     * 考试类型
     */
    @Excel(name = "考试类型")
    private String examCode;

    /**
     * 积分
     */
    @Excel(name = "积分")
    private BigDecimal points;

    /**
     * 0 否 1是
     */
    @Excel(name = "0 否 1是")
    private String hasSigned;

    private String startTime;
    private String endTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime vipValid;

    public LocalDateTime getVipValid() {
        return vipValid;
    }

    public void setVipValid(LocalDateTime vipValid) {
        this.vipValid = vipValid;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public String getExamCode() {
        return examCode;
    }

    public void setExamCode(String examCode) {
        this.examCode = examCode;
    }

    public BigDecimal getPoints() {
        return points;
    }

    public void setPoints(BigDecimal points) {
        this.points = points;
    }

    public String getHasSigned() {
        return hasSigned;
    }

    public void setHasSigned(String hasSigned) {
        this.hasSigned = hasSigned;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("name", getName())
                .append("tel", getTel())
                .append("examCode", getExamCode())
                .append("points", getPoints())
                .append("hasSigned", getHasSigned())
                .toString();
    }
}
